<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Thymeleaf Demo</title>
</head>
<body>
<!-- 动态内容使用 th:* 属性 -->
<h1 th:text="${message}">Default Message</h1>

<p>当前时间(JavaAPI):
    <span th:text="${T(java.time.LocalDateTime).now().format(T(java.time.format.DateTimeFormatter).ofPattern('yyyy-MM-dd HH:mm'))}"></span>
</p>


<form method="POST" action="/upload" enctype="multipart/form-data">
    <input type="file" name="file"/>
    <button type="submit">上传</button>
</form>

<!--<a href="/download/example.txt" download>下载文件</a>-->
<!-- 或通过JavaScript -->
<button onclick="window.location.href='/download/testCNN.py'">下载</button>
</body>
</html>